# try to find liblogger
# 
find_path(LIBLOGGER_INCLUDE_DIR 
	NAME logger/Log.h
	HINTS ${FUSION_SOURCE_DIR}/src/common/logger/)

find_library(LIBLOGGER_LIBRARY 
	NAME logger
	HINTS ${FUSION_SOURCE_DIR}/src/common/logger/lib)

set(LIBLOGGER_LIBRARIES ${LIBLOGGER_LIBRARY} )
set(LIBLOGGER_INCLUDE_DIRS ${LIBLOGGER_INCLUDE_DIR} )

include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set LIBXML2_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(liblogger  DEFAULT_MSG
                                  LIBLOGGER_LIBRARIES LIBLOGGER_INCLUDE_DIRS)

mark_as_advanced(LIBLOGGER_LIBRARIES LIBLOGGER_INCLUDE_DIRS)
message(STATUS "LIBLOGGER_LIBRARIES:" ${LIBLOGGER_LIBRARIES})
message(STATUS "LIBLOGGER_INCLUDE_DIR:" ${LIBLOGGER_INCLUDE_DIR})